﻿using System;
using System.ComponentModel.DataAnnotations;
using Castle.ActiveRecord;

namespace CQIE.OVS.Model
{
    [ActiveRecord("VoteInfo")]
    public class Vote:EntityBase
    {
        [BelongsTo(Type = typeof(User),Column = "UserID",Lazy = FetchWhen.OnInvoke)]
        public User User { get; set; }


        [BelongsTo(Type = typeof(Activity),Column = "ActivityId", Lazy = FetchWhen.OnInvoke)]
        public Activity Activity { get; set; }


        [BelongsTo(Type = typeof(Campaigner), Column = "CampaignerId", Lazy = FetchWhen.OnInvoke)]
        public Campaigner Campaigner { get; set; }

        [Property]
        [Display(Name = "投票日期")]
        public DateTime VoteTime { get; set; }

    }
}
